
package myExceptions;

public class mains {
    public static void main(String[] args) {
        variablesS vars = new variablesS();
        try {
            vars.setPrimerNumero(4);
            vars.setSegundoNumero(5);
        } catch (myExeptionsbyDiferentZero firstExeptions) {
            System.out.println(firstExeptions.getMessage());
        } catch (ArrayIndexOutOfBoundsException secondExeptions) {
            System.out.println("Fuerra del arreglo");
        } catch (ArrayStoreException treeExeptions) {
            System.out.println("Excepcion tres");
        } catch (myExeptionsbyDiferentNumer exeptionsme1) {            
            System.out.println(exeptionsme1.getMessage());
        } finally {
            System.out.println("Operacion Terminada con exito");
        }    
    }
    
}
